package cn.iocoder.yudao.module.member.controller.admin.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 会员认证大愚灸术学员 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class MemberAuthBaseVO {

    @Schema(description = "会员编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27704")
    @NotNull(message = "会员编号不能为空")
    private Long memberId;

    @Schema(description = "失败理由", example = "不喜欢")
    private String reason;

    @Schema(description = "美照", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotNull(message = "美照不能为空")
    private String picUrl;

    @Schema(description = "培训日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "培训日期不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime learnTime;

    @Schema(description = "真实姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotNull(message = "真实姓名不能为空")
    private String realName;

    @Schema(description = "身份证号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "身份证号不能为空")
    private String idNumber;

    @Schema(description = "身份证正面", requiredMode = Schema.RequiredMode.REQUIRED)
    private String idFront;

    @Schema(description = "身份证背面", requiredMode = Schema.RequiredMode.REQUIRED)
    private String idBack;

    @Schema(description = "地区", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "地区不能为空")
    private Integer areaId;

    @Schema(description = "详细地址", requiredMode = Schema.RequiredMode.REQUIRED)
    private String address;

}
